<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <link href="../../../sdk/ui.css" rel="stylesheet">
    <link href="style.css" rel="stylesheet">
    <script>
    //Android适配rem
    if (/Android (\d+\.\d+)/.test(navigator.userAgent)) {
    var version = parseFloat(RegExp.$1);
    if (version /*< 4.4*/) {
    var phoneScale = window.screen.availWidth / 640;
    var rootSize = parseInt(phoneScale * 100) + 'px';
    document.documentElement.style.fontSize = rootSize;
    }
    }
    </script>
  </head>
  <body class="flex-col">
    <div class="head myhead">
      <div class="btn" id="goBack">
        <i class="ion">&#xe7b7;</i>
      </div>
      <div class="title" id="headTitle">问卷调查</div>
    </div>
    <div class="flex-1 scroll_cont" id="View">
      <div class="list">
        <div class="item item-body">
          <h2 class="tc" id="paperName"></h2>
          <div id="paperDescription"></div>
        </div>
      </div>
      
      <form id="paperForm">
      <script type="text/template" class="hide" id="paperTemp">
        <!-- for: ${question} as ${item} -->
        <div class="card">
          <div class="item item-divider item-body">${item.name}</div>
          <!-- if: ${item.question_class}=='radio' -->
          <!-- for: ${item.item} as ${radio}, ${index} -->
          <label class="item item-radio">
            <input type="radio" name="jr-${item.question_type}-${item.id}" value="${radio.id}"<!-- if: ${index}==0 -->checked<!-- /if --> >
            <div class="item-content">${radio.name}</div>
            <i class="radio-icon ion">&#xe6bf;</i>
          </label>
          <!-- /for -->
          <!-- elif: ${item.question_class}=='checkbox' -->
          checkbox unbuilding...
          <!-- elif: ${item.question_class}=='textarea' -->
          <label class="item item-input">
            <textarea name="jr-${item.question_type}-${item.id}" rows="8"></textarea>
          </label>
          <!-- /if -->
        </div>
        <!-- /for -->
        <!-- <div class="item item-divider">请填写您的个人信息</div>
        <label class="item item-input">
          <span class="input-label">姓名</span>
          <input type="text" name="real_name" datatype="s2-8" nullmsg="请填写姓名">
        </label>
        <label class="item item-input">
          <span class="input-label">手机</span>
          <input type="text" name="tel" datatype="m" nullmsg="请填写手机">
        </label>
        <label class="item item-input">
          <span class="input-label">公司</span>
          <input type="text" name="company_name">
        </label>
        <label class="item item-input">
          <span class="input-label">地址</span>
          <input type="text" name="address">
        </label>
        <label class="item item-input">
          <span class="input-label">邮箱</span>
          <input type="text" name="email">
        </label> -->

        <div class="padding">
          <button class="btn btn-block btn-lg btn-danger">提交</button>
        </div>
        </script>
      </form>
      
    </div>
  </body>
  <script src="../../../config.js"></script><script src="../../../sdk/modules/core.js" id="seajsnode" ></script>
  <script>
  seajs.use('./script')
  </script>
</html>